home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-09 / lhpmdb.zip / LHPMDEMO.DOC < prev    next >
Text File  |  1993-05-24  |  3KB  |  66 lines

  1.                  Landscape & Herbaceous Plant Manager
  2.                       Demo Script Documentation
  3.                               May, 1993
  4.  
  5. Original demo script routine specifications by Steve Schafer.  Adapted and 
  6. modified for LHPM by Robert Boufford.
  7.  
  8. As part of LHPMDB version 1.3, a simple self-running demo feature has been 
  9. added to the application. This is a trial feature and may not be available 
  10. in later versions.
  11.  
  12. For the demo to run, the script LHPMDEMO.SCR must be in the same directory 
  13. as the application, LHPMDB.EXE. If the script file is missing, the LHPM 
  14. DEMO menu command will be disabled.
  15.  
  16. The script can be modified with a text editor or word processor.
  17.  
  18. WARNING: Modification of the script may cause erratic results and could 
  19. potentially damage LHPM datafiles. Modification requires advanced knowledge 
  20. of the ASCII character set or Borland Pascal Turbo Vision keyboard 
  21. constants.
  22.  
  23.  
  24. Each line of the script file is of the form:
  25.  
  26.   COMMAND [optional space] PARAMETER
  27.  
  28. where COMMAND is a single character from the set { K k T t W w M m}. Lines
  29. which begin with any other character are ignored. Each command character is
  30. followed by an optional space and a parameter, the definition of which
  31. varies according to the command. The commands and allowable parameters are
  32. as follows:
  33.  
  34. T t  This command sets the default delay time between commands read from
  35.      the script file. The parameter is the time value in milliseconds.
  36.      Since the script routine uses the DOS time-of-day function to measure
  37.      delays, the actual time resolution is on the order of 1/18 second.
  38.      This command may be issued as often as desired, the default delay time
  39.      remains in effect until the next T command is encountered.
  40.  
  41. W w  This command causes a one-time delay, with the time again given in
  42.      milliseconds. Note that this delay is ADDED to the current default
  43.      delay time. This command is useful for pausing the action of a script.
  44.  
  45. K k  This command inserts a single keystroke into the event queue. The
  46.      parameter can be a single ASCII character (other than a space); that
  47.      character is inserted into the event queue. The ^ form of control
  48.      character representation may be used to insert control characters into
  49.      the event queue, or the # construct may be used to insert any ASCII
  50.      character into the event queue. For example, "K ^G" inserts a
  51.      control-G, while "K #36" inserts a dollar sign. Use "K #32" to insert
  52.      a space into the event queue. In addition to the above, the kbXXXX
  53.      constants defined in the Turbo Vision manual may be used to insert
  54.      special key codes into the event queue. For example 'K kbAltF' inserts
  55.      an Alt-F into the event queue. Any of the kbXXXX codes (except
  56.      kbNoKey) may be used.
  57.  
  58. M m  This command will open a Turbo Vision MessageBox with the string
  59.      parameter. A K command with the kbESC parameter must be given to 
  60.      close the messagebox. There is about a 130 character limit to the 
  61.      message string parameter.
  62.  
  63. Any syntax errors in a T or W command result in the command being ignored.
  64. A syntax error in a K command results in an evNothing event being inserted
  65. into the event queue.
  66.